import request from '@/utils/request'

export default {

  createStatistics(day) {
    return request({
      url: `/admin/statistics/daily/create/${day}`,
      method: 'post'
    })
  },
  getCharts(search) {
    return request({
      url: `/admin/statistics/daily/get-charts/${search.startTime}/${search.endTime}`,
      method: 'get'
    })
  }
}
